package kines;

/**
 * <dl>
 * <dt>Purpose: Manage Person
 * <dd>
 * <dt>Description:
 * <dd> Derivate all kind of person like Prospects, Sales persons, and so on.
 * <p>Title: CT</p>
 * <p>Description: Intranet Consorcio Terrenos</p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: Consorcio Terrenos</p>
 * @author Jose Delgado
 * @version 1.0
 */

public class Person{
  /**
   * Table identifier
   */
  protected int id = 0;
  /**
   * Store all person's first names, could be 1 or more
   */
  protected String firstName = "";
  protected String lastName[] = {"",""};
  protected String address = "";
  protected String colony = "";
  protected int areaCode = -1;
  protected String city = "";
  protected String state = null;
  protected String phone = "";
  /**
   * Default Contructor
   */
  public Person() {
  }
  /**
   * Sets id attribute
   * @param id attribute
   */
  protected void setId( int id ){
    this.id = id;
  }
  /**
   * Gets id attribute
   * @return An int ( id attribute )
   */
  public int getId( ){
    return id;
  }
  /**
   * Gets firstName attribute
   * @return A String ( firstName attribute )
   */
  public String getFirstName( ){
    return firstName;
  }
  /**
   * Sets firstName attribute
   * @param firstName attribute
   */
  public void setFirstName( String firstName ){
    this.firstName = firstName.toUpperCase();
  }
  /**
   * Gets state attribute
   * @return A String ( state attribute )
   */
  public String getState( ){
    return state;
  }
  /**
   * Sets state attribute
   * @param state attribute
   */
  public void setState( String state ){
    this.state = state;
  }
  /**
   * Gets lastName attribute
   * @return A String Array ( lastName attribute )
   */
  public String[] getLastName( ){
    return lastName;
  }
  public String getCompleteName( ){
    return firstName+" "+lastName[0]+" "+lastName[1];
  }
  /**
   * Sets lastName attribute
   * @param lastName array attribute
   */
  public void setLastName( String [] lastName ){
    this.lastName[0] = lastName[0].toUpperCase();
    this.lastName[1] = lastName[1].toUpperCase();
  }

  /**
   * Gets address attribute
   * @return A String ( address attribute )
   */
  public String getAddress( ){
    return address;
  }
  /**
   * Sets address attribute
   * @param address attribute
   */
  public void setAddress( String address ){
    this.address = address;
  }

  /**
   * Gets cologne attribute
   * @return A String ( cologne attribute )
   */
  public String getColony( ){
    return colony;
  }
  /**
   * Sets cologne attribute
   * @param cologne attribute
   */
  public void setColony( String colony ){
    this.colony = colony;
  }

  /**
   * Gets areaCode attribute
   * @return A String ( areaCode attribute )
   */
  public int getAreaCode( ){
    return areaCode;
  }
  /**
   * Sets areaCode attribute
   * @param phone areaCode
   */
  public void setAreaCode( int areaCode ){
    this.areaCode = areaCode;
  }

  /**
   * Gets city attribute
   * @return A String ( city attribute )
   */
  public String getCity( ){
    return city;
  }
  /**
   * Sets city attribute
   * @param phone city
   */
  public void setCity( String city ){
    this.city = city;
  }

  /**
   * Gets phone attribute
   * @return A String ( phone attribute )
   */
  public String getPhone( ){
    return phone;
  }
  /**
   * Sets phone attribute
   * @param phone attribute
   */
  public void setPhone( String phone ){
    this.phone = phone;
  }
}